xmexample: portability fix
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 2 Mar 2009 11:04:43 +0000 (11:04 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 2 Mar 2009 11:04:43 +0000 (11:04 +0000)
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
tools/examples/xmexample.hvm
tools/examples/xmexample.vti

index b4d849f72f346b302591bec04de082d620a65127..0977ef4221782457c3de868bb98c577adf6b9ca9 100644 (file)
@@ -7,11 +7,11 @@
 #============================================================================
 
 import os, re
+
+arch_libdir = 'lib'
 arch = os.uname()[4]
-if re.search('64', arch):
+if os.uname()[0] == 'Linux' and re.search('64', arch):
     arch_libdir = 'lib64'
-else:
-    arch_libdir = 'lib'
 
 #----------------------------------------------------------------------------
 # Kernel image file.
index 3169e52d03a65e4d4f684e32e6f202708f5a5106..19070f2a98b122dab37c66c17780b364f6cf64a5 100644 (file)
@@ -7,8 +7,10 @@
 #============================================================================
 
 import os, re
-arch = os.uname()[4]
 arch_libdir = 'lib'
+arch = os.uname()[4]
+if os.uname()[0] == 'Linux' and re.search('64', arch):
+    arch_libdir = 'lib64'
 
 #----------------------------------------------------------------------------
 # Kernel image file.